﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaintainInfo.aspx.cs" Inherits="Runda.CMS.Portal.Mobile.MaintainInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html class="ui-mobile landscape min-width-320px min-width-480px min-width-768px min-width-1024px" >
<head runat="server">
    <title></title>
     <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
    <meta name="GENERATOR" content="MSHTML 8.00.7600.16385" />
    <link rel="stylesheet" href="Content/jquery.mobile-1.0a4.1.min.css" />
     <link rel="stylesheet" href="Content/jquery.mobile.datebox.min.css" type="text/css" />
    <script type="text/javascript" src="Content/jquery-1.5.min.js"></script>
  <script type="text/javascript">
      jQuery.extend(jQuery.mobile.datebox.prototype.options, {
          'experimentalReg': true
      });
    </script>
    
    <script type="text/javascript" src="Content/jquery.mousewheel.min.js"></script>

    <script type="text/javascript" src="Content/jquery.mobile-1.0a4.1.min.js"></script>
     <script type="text/javascript" src="Content/jquery.mobile.datebox.min.js"></script>

    <link rel="stylesheet" href="Content/jquery.mobile.simpledialog.css" type="text/css" />
    <link rel="stylesheet" href="Content/datepicker.css" type="text/css" />

    <script type="text/javascript" src="Content/dFormat.js"></script>

    <script type="text/javascript" src="Content/datepicker.js"></script>

    <script type="text/javascript" src="Content/jquery.mobile.simpledialog.js"></script>

    <script type="text/javascript" src="Content/g.base.js"></script>
             
    <style type="text/css">
        ul, li
        {
            margin: 0;
            padding: 0;
            width: 100%;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function() {
            (function() { $('#txtReceiveDate').bind("tap", { curdatetext: "txtReceiveDate" }, datepicker.handler); })();
            (function() { $('#txtBeginDate').bind("tap", { curdatetext: "txtBeginDate" }, datepicker.handler); })();
            (function() { $('#txtEndDate').bind("tap", { curdatetext: "txtEndDate" }, datepicker.handler); })(); 
        });
    </script>         
    
    <script type="text/javascript">
        $(document).ready(function changeReadRecord() {

        if (document.getElementById('ReadNumType').value == '1') {
        
                document.getElementById("trT").style.display = "block";
                document.getElementById("tra").style.display = "none";
               
            } else {
                document.getElementById("trT").style.display = "none";
                document.getElementById("tra").style.display = "block";
            }
        }
      );
    </script>
    
</head>
<body class="ui-mobile-viewport">
    <form id="form1" runat="server">
     <div style="position: absolute; left: -9999px;">
        <a href="#" id="setfoc"></a>
    </div>
    <div class="ui-page ui-body-c ui-page-active" data-role="page">
    
        <div class="ui-content" data-role="content" role="main">
        
        <div class="ui-bar-b ui-header" data-role="header" role="banner">
            <a class="ui-btn-left ui-btn ui-btn-icon-left ui-btn-corner-all ui-shadow ui-btn-up-b" data-icon="arrow-l" data-rel="back" href="#" data-theme="b"><span class="ui-btn-inner ui-btn-corner-all">
                    <span class="ui-btn-text">后退</span> <span class="ui-icon ui-icon-arrow-l ui-icon-shadow">
                    </span></span></a>
            <h1 class="ui-title" tabindex="0" role="heading" aria-level="1">
                服务单</h1>
        </div>
        
       <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtBillNo">单据号：</label>
            <asp:TextBox ID="txtBillNo" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c" Enabled="false"></asp:TextBox> 
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtCustomName">客户：</label>
            <asp:TextBox ID="txtCustomName" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c" Enabled="false"></asp:TextBox> 
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtInstrumentName">仪器型号：</label>
            <asp:TextBox ID="txtInstrumentName" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c" Enabled="false"></asp:TextBox> 
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtInstrumentBelongTo">仪器所属厂家：</label>
            <asp:TextBox ID="txtInstrumentBelongTo" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c" Enabled="false"></asp:TextBox> 
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtInstrumentSerialNum">仪器序列号：</label>
            <asp:TextBox ID="txtInstrumentSerialNum" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c" Enabled="false"></asp:TextBox> 
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="select ui-select" for="ddlServiceLevel">服务等级：</label>
            <div class="ui-select">
            <asp:DropDownList ID="ddlServiceLevel" runat="server">
                <asp:ListItem Text="普通" Value="Normal"></asp:ListItem>
                <asp:ListItem Text="VIP" Value="VIP"></asp:ListItem>
                <asp:ListItem Text="VVIP" Value="VVIP"></asp:ListItem>
            </asp:DropDownList></div>
        </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="select ui-select" for="ddlGuaranteeInfo">保修情况：</label>
            <div class="ui-select">
            <asp:DropDownList ID="ddlGuaranteeInfo" runat="server">
            </asp:DropDownList></div>
        </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtEmpName">现场技术人员：</label>
            <asp:TextBox ID="txtEmpName" Enabled="false" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"></asp:TextBox> 
        </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtReceiveDate">
                获悉日期：</label>
            <input id="txtReceiveDate" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"
                type="text" value="" name="txtReceiveDate" runat="server" />
         </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain" style="vertical-align: middle;">
            <label class="ui-input-text" for="txtReceiveTime">
                获悉时间：</label>
            <input id="txtReceiveTime" class="ui-input-text ui-body-null ui-body-c" type="text" runat="server" data-role="datebox"
                data-options='{"mode": "timebox"}' name="txtReceiveTime" value="" />
         </div>
         
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtBeginDate">
                到达日期：</label>
            <input id="txtBeginDate" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"
                type="text" value="" name="txtBeginDate" runat="server" />
         </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain" style="vertical-align: middle;">
            <label class="ui-input-text" for="txtBeginTime">
                到达时间：</label>
            <input id="txtBeginTime" class="ui-input-text ui-body-null ui-body-c" type="text" runat="server" data-role="datebox"
                data-options='{"mode": "timebox"}' name="txtBeginTime" value="" />
         </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtOnWayTime">
                路途时间（小时）：</label>
            <input id="txtOnWayTime" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"
                type="text" value="" name="txtOnWayTime" runat="server" />
         </div> 
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtEndDate">
                结束日期：</label>
            <input id="txtEndDate" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"
                type="text" value="" name="txtEndDate" runat="server" />
         </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain" style="vertical-align: middle;">
            <label class="ui-input-text" for="txtEndTime">
                结束时间：</label>
            <input id="txtEndTime" class="ui-input-text ui-body-null ui-body-c" type="text" runat="server" data-role="datebox"
                data-options='{"mode": "timebox"}' name="txtEndTime" value="" />
         </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtServicePurpose">服务目的：</label>
            <asp:TextBox ID="txtServicePurpose" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"></asp:TextBox> 
        </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtWorkContent">工作内容：</label>
            <asp:TextBox ID="txtWorkContent" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"></asp:TextBox> 
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtRecommendContent">建议用户内容：</label>
            <asp:TextBox ID="txtRecommendContent" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"></asp:TextBox> 
        </div>
         <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="ui-input-text" for="txtUsersContacter">用户联系人：</label>
            <div class="ui-select">
            <asp:DropDownList ID="UsersContacter" runat="server"></asp:DropDownList>
            </div>
        </div>
        <div id="trT">
           <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain" >
                <label class="ui-input-text" for="txtRecommendContent">读数总数：</label>
                <asp:TextBox ID="ReadNum" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"></asp:TextBox> 
            </div>
        </div>
        <div id="tra">
            <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain" >
                <label class="ui-input-text" for="txtRecommendContent">读数日平均数：</label>
                <asp:TextBox ID="ReadNumAverageDaily" runat="server" class="ui-input-text ui-body-null ui-corner-all ui-shadow-inset ui-body-c"></asp:TextBox> 
            </div>
        </div>
        <div class="ui-field-contain ui-body ui-br" data-role="fieldcontain">
            <label class="select ui-select" for="ddltServicedStatus">保修情况：</label>
            <div class="ui-select">
            <asp:DropDownList ID="ddltServicedStatus" runat="server">
            <asp:ListItem Text=" " Value =  " " Selected="True" />
            <asp:ListItem Text="完成保养（FE)" Value = "完成保养（FE)" />
            <asp:ListItem Text="故障维修，正常使用（FE）" Value = "故障维修，正常使用（FE)" />
            <asp:ListItem Text="故障恢复，待观察（FE)" Value = "故障恢复，待观察（FE)" />
            <asp:ListItem Text="暂可使用，仍需排除故障（FE)" Value = "暂可使用，仍需排除故障（FE)" />
            <asp:ListItem Text="暂可使用，需更换配件（FE)" Value = "暂可使用，需更换配件（FE)" />
            <asp:ListItem Text="暂停使用，待修复（FE)" Value = "暂停使用，待修复（FE)" />
            <asp:ListItem Text="永久停用（FE)" Value = "永久停用（FE)" />
            <asp:ListItem Text="其他" Value = "其他" />
            <asp:ListItem Text="已完成（LS/FE)" Value = "已完成（LS/FE)" />
            <asp:ListItem Text="完成装机培训（LS/FE)" Value = "完成装机培训（LS/FE)" />
            <asp:ListItem Text="未完成待续（LS/FE)" Value = "未完成待续（LS/FE)" />
            <asp:ListItem Text="现完成，近期需随访跟进（LS/FE)" Value = "现完成，近期需随访跟进（LS/FE)" />
            <asp:ListItem Text="需继续随访跟进（LS/FE)" Value = "需继续随访跟进（LS/FE)" />
            <asp:ListItem Text="完成随访，用户正常使用（LS/FE)" Value = "完成随访，用户正常使用（LS/FE)" />
            </asp:DropDownList>
        </div>
        </div>
        
         <div class="ui-body ui-body-b">
                <fieldset class="ui-grid-a">
                    <div class="ui-block-a">
                        <button class="ui-btn-hidden" data-theme="d" type="submit" tabindex="-1">
                            取消</button>
                    </div>
                    <div class="ui-block-b"> 
                        <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" CssClass="ui-btn-hidden" data-theme="a" />
                    </div>
                </fieldset>
            </div>
        </div>
     </div>
     <asp:Button runat="server" ID="hiddenMaintainID" />
       <asp:Label ID="lastDailyNum" runat="server" Visible="false"></asp:Label>
    <asp:TextBox ID="hiddenLastRecordNum" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="hiddenLastRecordDate" runat="server" Visible="false"></asp:TextBox>       
      <asp:DropDownList ID="ReadNumType" runat="server" style="display:none">
                                            <asp:ListItem Text="计数总数" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="读数日平均数" Value="2"></asp:ListItem>
                                        </asp:DropDownList>
    </form>
</body>
</html>
